﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace VM.Entity.EntityDto.ShopCar
{
    public class addshopCarDto
    {
        public addshopCarDto()
        { }
        #region Model
        private int _id;
        private string _name;
        private int _goodid;
        private int _specid;
        private int _qty;
        private int _createuserid;
        private DateTime _createdate;
        private string _description;
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }

        /// <summary>
        /// 1 从详情页来，2 从购物车页来
        /// </summary>
        public int addTypeId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public string? name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 商品内码
        /// </summary>
        public int goodId
        {
            set { _goodid = value; }
            get { return _goodid; }
        }
        /// <summary>
        /// 规格内码
        /// </summary>
        public int specId
        {
            set { _specid = value; }
            get { return _specid; }
        }
        /// <summary>
        /// 数量
        /// </summary>
        public int qty
        {
            set { _qty = value; }
            get { return _qty; }
        }
        /// <summary>
        /// 创建人
        /// </summary>
        [JsonIgnore]
        public int createUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public DateTime createDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string description
        {
            set { _description = value; }
            get { return _description; }
        }
        #endregion Model
    }
}
